home *** CD-ROM | disk | FTP | other *** search
- Path: news.nstn.ca!news
- From: keichele@ac.dal.ca (Klaus Eichele)
- Newsgroups: comp.lang.c++
- Subject: Re: Borland C 4.52 & Opening Dialog Boxes
- Date: Thu, 22 Feb 1996 00:09:33 GMT
- Organization: Dalhousie University
- Message-ID: <4gfu7k$jr0@news.nstn.ca>
- References: <4g9o4v$de8@news.eunet.cz> <4gedfe$b6n@news.iastate.edu>
- NNTP-Posting-Host: rewasylishen.chem.dal.ca
- X-Newsreader: Forte Free Agent 1.0.82
-
- goeken@iastate.edu (Scott Matthew Goeken) wrote:
-
- >Borivoj Kostka <kostka@tovek.cz> wrote:
-
- >>wiersch@fastlane.net (Albert Wiersch) writes:
- >>> I've noticed a strange problem with my program... Basically, the dialog boxes will open when my program is run with Borland C++ running as
- >>> well, but if I try to run the executable without BC, the dialog boxes won't open. What am I missing?
- >>>
- >>Try to call EnableBWCC or EnableCtl3d in TApplication
- >>constructor.
-
- >I'm Having the same problem but I'm not using the TApplication just
- >using windowsx.h and windows.h I'm new to windows programming so I
- >could be mistaken.
- >Is there an iniitilization function that I must call?
-
- Hi,
- if your dialog boxes use some of the Borland Custom Controls (e.g. the
- nice buttons with the bitmaps), the drawing of these controls is
- handled by the dynamic link library bwcc.dll (or something similar for
- 32 bit apps.). So, in order for the dialog boxes to work, this DLL
- needs to be loaded by Windows. If you are running the BC IDE, bwcc.dll
- is loaded and therefore things work. If you run your program without
- the IDE being loaded also, bwcc.dll will not get loaded and your
- dialog boxes fail. Therefore, to force Windows to load bwcc.dll upon
- start of your program, one includes an explicit call to one of the
- functions in the bwcc.dll, typically EnableBWCC(). You could do this
- right at the beginning of your WinMain(). You will also need to
- #include <bwcc.h> into this source file and include bwcc.lib into your
- project.
-
- Good Luck,
- Klaus
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Klaus Eichele keichele@ac.dal.ca
- http://ac.dal.ca/~keichele/keichele.html
-
-